package com.hexanet.server.dao;

import java.util.Arrays;
import java.util.List;

import com.hexanet.bom.Cell;
import com.hexanet.bom.Location;
import com.hexanet.bom.Player;

public class CellDao extends DataAccessDao<Cell> {
    
    
    public List<Cell> getVisibleCellsByLocation(Location location)
    {
	Player p = new Player();
	p.setId(2L);
	p.setNickname("winner3");
	p.setMail("peter@gmx.at");
	
	Location loc1 = new Location(5D, 10D);
	Location loc2 = new Location(12D, 30D);
	
	Cell cell1 = new Cell();
	cell1.setId(1L);
	cell1.setName("HomeCell of Player2");
	cell1.setLocation(loc1);
	cell1.setPlayer(p);
	
	Cell cell2 = new Cell();
	cell2.setId(2L);
	cell2.setName("Cell2 of Player2");
	cell2.setLocation(loc2);
	cell2.setPlayer(p);
	
	return Arrays.asList(cell2);
	
	
    }

}
